package lbsproject.processaudit.socket.type;

import java.util.Date;

import org.codehaus.jackson.annotate.JsonIgnore;


public class CheckTask4Comm {

	private String taskId;
	private String taskName;
	private Date createDate;
	private Date finishDate;
	private int taskStatus;
	private int taskLevel;
	private double gpsJingdu;
	private double gpsWeidu;
	private String locationId;

	public CheckTask4Comm() {
		// pass
	}

	public CheckTask4Comm( String taskId, String taskName, Date createDate, Date finishDate, int taskStatus, int taskLevel ) {
		super();
		this.taskId = taskId;
		this.taskName = taskName;
		this.createDate = createDate;
		this.finishDate = finishDate;
		this.taskStatus = taskStatus;
		this.taskLevel = taskLevel;
	}

	public String getTaskID() {
		return taskId;
	}

	public void setTaskID( String taskID ) {
		this.taskId = taskID;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName( String taskName ) {
		this.taskName = taskName;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate( Date createDate ) {
		this.createDate = createDate;
	}

	public Date getFinishDate() {
		return finishDate;
	}

	public void setFinishDate( Date finishDate ) {
		this.finishDate = finishDate;
	}

	public int getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus( int taskStatus ) {
		this.taskStatus = taskStatus;
	}

	public int getTaskLevel() {
		return taskLevel;
	}

	public void setTaskLevel( int taskLevel ) {
		this.taskLevel = taskLevel;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId( String taskId ) {
		this.taskId = taskId;
	}

	public void setLocation( String locationId, double gpsJingdu, double gpsWeidu ) {
		this.locationId = locationId;
		this.gpsJingdu = gpsJingdu;
		this.gpsWeidu = gpsWeidu;
	}

	public void setLocation( Location4Comm location ) {
		this.gpsJingdu = location.getJingdu();
		this.gpsWeidu = location.getWeidu();
		this.locationId = location.getLocationId();
	}

	public Location4Comm getLocation() {
		return new Location4Comm( this.gpsJingdu, this.gpsWeidu, this.locationId );
	}

	public double getGpsJingdu() {
		return gpsJingdu;
	}

	public void setGpsJingdu( double gpsJingdu ) {
		this.gpsJingdu = gpsJingdu;
	}

	public double getGpsWeidu() {
		return gpsWeidu;
	}

	public void setGpsWeidu( double gpsWeidu ) {
		this.gpsWeidu = gpsWeidu;
	}

	public String getLocationId() {
		return locationId;
	}

	public void setLocationId( String locationId ) {
		this.locationId = locationId;
	}

}
